ExamPlay Light Logo
Đăng nhập

Computer Science for IGCSE & O level - Programming (Section 15 - No. 25)

What is the primary function of a CASE statement in programming?
To define multiple choices based on a single expression.
To repeat a block of code a specified number of times.
To store multiple variables.
To perform arithmetic operations.

Giải thích

A CASE statement provides a way to select one block of code to execute based on the value of a variable or expression.

Bình luận (0)

Đăng nhập để bình luận
Quảng cáo
BrainBehindX Inc Logo
©2026; Được cung cấp bởi BrainBehindX Inc